import React, { Component } from 'react'
import { connect } from 'dva'
import { Link } from 'dva/router'

@connect(({ index }) => ({
  ...index
}))
export default class Index extends Component {
  render() {
    return (
      <div>
        <p>this is index ,值取自model{this.props.name}</p>
        <p><Link to='/detail'>链接跳转</Link></p>
      </div>
    )
  }
}